package com.junhong.forum.entity;

import javax.enterprise.context.Dependent;
import javax.persistence.Entity;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Dependent
@Table(name = "threaddashboard")
@NamedQuery(name = "threaddashboard.all", query = "select db from ThreadDashBoard db  order by db.categoryId asc,db.createTime desc")
public class ThreadDashBoard extends AbstractEntity {
	private static final long	serialVersionUID	= 7854841321312315073L;
	private int					categoryId;
	private int					threadId;
	private String				threadSubject;
	private String				threadOwner;

	/**
	 * @return the categoryId
	 */
	public int getCategoryId() {
		return categoryId;
	}

	/**
	 * @param categoryId
	 *            the categoryId to set
	 */
	public void setCategoryId(int categoryId) {
		this.categoryId = categoryId;
	}

	/**
	 * @return the threadSubject
	 */
	public String getThreadSubject() {
		return threadSubject;
	}

	/**
	 * @param threadSubject
	 *            the threadSubject to set
	 */
	public void setThreadSubject(String threadSubject) {
		this.threadSubject = threadSubject;
	}

	/**
	 * @return the threadid
	 */
	public int getThreadId() {
		return threadId;
	}

	/**
	 * @param threadid
	 *            the threadid to set
	 */
	public void setThreadId(int threadId) {
		this.threadId = threadId;
	}

	/**
	 * @return the threadOwner
	 */
	public String getThreadOwner() {
		return threadOwner;
	}

	/**
	 * @param threadOwner
	 *            the threadOwner to set
	 */
	public void setThreadOwner(String threadOwner) {
		this.threadOwner = threadOwner;
	}

}
